package cn.rengy.web.framework.shiro.token;

public class LocalToken extends AbstractAuthenticationToken{

	private static final long serialVersionUID = 1L;

	private String username;
	
	private String password;
	
	public LocalToken() {
	}
	
	public LocalToken(String username, String password,String userAgent, String clientIp) {
		super(userAgent,clientIp);
		this.username = username;
		this.password = password;
	}

	@Override
	public Object getPrincipal() {
		return username;
	}

	@Override
	public Object getCredentials() {
		return password;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getPassword() {
		return password;
	}

	public void setPassword(String password) {
		this.password = password;
	}

}
